﻿<?php
include("inc/conn.inc");
include("search_page.php");
$hove=1;
$url="search.php";
$thepage=$_GET['page']?$_GET['page']:1;
$maxpage=20;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>加盟搜索，三帝加盟网-致力打造品牌加盟、连锁加盟、代理加盟首选平台。</title>
<meta name="description" content="加盟搜索，三帝加盟网为千万中小投资、创业者提供选择好项目，创业加盟、投资创业、连锁加盟、招商加盟、小本创业、代理加盟等，并为各行业代理加盟创造财富价值的品牌商机网。" />
<meta name="keywords" content="加盟搜索，中国加盟网、致富网、加盟网、加盟代理、加盟店、连锁店、连锁加盟、排行榜、加盟店排行榜、婴幼加盟、服装加盟、饰品加盟、餐饮加盟、品牌女装、开店找项目、创业、创业商机网、商机网、小本创业、致富网、加盟项目" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/list.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("top.php");?>
<div id="mian" class="topside6 side">
<div class="title">您所在的位置：<a href="/">首页</a> >> 加盟搜索</div>
<div class="onl"></div>
</div>


<div id="mian" class="topside6">
  <div class="onl"></div>
<div class="leftmain">
<div>
<div class="zzb3"><img src="/images/list.gif" width="775" height="27" /></div>
<DIV class="zzb3 side">
<DIV style="width:120px;float:left;height:25px;line-height: 25px;" align="center">图片</DIV>
<DIV style="width:276px;float:left;height:25px;line-height: 25px;" align="center">项目信息/公司</DIV>
<DIV style="width:100px;float:left;height:25px;line-height: 25px;" align="center">
</DIV>
<DIV style="width:90px;float:left;height:25px;line-height: 25px;" align="center">投资金额</DIV>
<DIV style="width:80px;float:left;height:25px;line-height: 25px;" align="center">会员等级</DIV>
<DIV style="width:80px;float:left;height:25px;line-height: 25px;" align="center">联系我们</DIV>
</DIV>
<?php
if($_GET[s_je]){
$sqls=" and jm_list.j_price='$_GET[s_je]'";
$sqls2=" and j_price='$_GET[s_je]'";
}
if($_GET[s_hy]){
$sqls=$sqls." and jm_list.type_id1='$_GET[s_hy]'";
$sqls2=$sqls2." and type_id1='$_GET[s_hy]'";
}
if($_GET[c_provinces]){
$sqls=$sqls." and member.m_pro='$_GET[c_provinces]'";
$sqls2=$sqls2." and m_pro='$_GET[c_provinces]'";
}
if($_GET[c_city]){
$sqls=$sqls." and member.m_city='$_GET[c_city]'";
$sqls2=$sqls2." and m_city='$_GET[c_city]'";
}


$rs=@mysql_query("select jm_list.id,jm_list.j_title,jm_list.picture,jm_list.addtime,jm_list.j_info,jm_list.j_ztze,member.m_type,member.m_user,member.m_cname,member.pro,member.city from jm_list inner join member on (jm_list.member_id=member.id) where jm_list.j_sh=1  ".$sqls." order by jm_list.addtime desc limit ".($thepage-1)*$maxpage.",$maxpage");
while($row=@mysql_fetch_array($rs)){
if($row[m_type]==6){
   $m_url="http://$row[m_user].sandib2b.cn/";
   $m_url2="http://$row[m_user].sandib2b.cn/contact.htm";
}else{
   $m_url="/cn/template/$row[m_user]/";
   $m_url2="/cn/template/$row[m_user]/contact.html";
}
?>



<DIV class=zzb4 id=Info6197>
<DIV class=zzb4-2>
<a href="/jiameng/xiangmu/<?=$row['id']?>.html" target="_blank">
<img src="http://img.sandib2b.cn/<?=$row[picture]?>" border="0" width='90' height='90'/></a></DIV>
<DIV class=zzb4-3>
<DIV class=zzb4-3-1><a href="/jiameng/xiangmu/<?=$row['id']?>.html" target="_blank"><?=mb_substr($row[j_title],0,15,'utf-8')?></a><SPAN 
style="FONT-WEIGHT: normal" class="size10 fontgray">2010-09-17</SPAN></DIV>
<DIV class=zzb4-3-Time></DIV>
<DIV class=zzb4-3-2><?=mb_substr(strip_tags($row[j_info]),0,50,'utf-8')?></DIV>
<DIV class=zzb4-3-3>
<DIV style="FLOAT: left;font-weight: lighter;"><A href="<?=$m_url?>" target=_blank><?=$row['m_cname']?></A> </DIV>
<DIV style="FLOAT: right; COLOR: #999999;font-weight: lighter;">[<?=$row[pro]?>-<?=$row['city']?>] </DIV></DIV></DIV>
<DIV class=zzb5>
  <DIV style="TEXT-ALIGN: center" class="fontred size14 b"><?php if($row[j_ztze]){?><?=$row[j_ztze]?>万元<?php }?></DIV>
<div class="size11 fontgray"> </div></DIV>
<DIV class=zzb52>
<div style="COLOR: #999999;font-weight: lighter;">
<?php if($row[m_type]==6){?>
<a href="<?=$m_url?>certificate.htm" target="_blank"><img src="/images/member1.gif" border="0"></a><?php }?></div>
</DIV>
<DIV class=zzb53>
  <div class="ms"><a href="<?=$m_url2?>" target="_blank"><img src="/images/list01.gif" width="81" height="25" border="0" /></a></div>
  <div class="ms"><a href="/jiameng/xiangmu/<?=$row['id']?>.html" target="_blank"><img src="/images/list02.gif" width="81" height="25" border="0" /></a></div>
</DIV>
<div class="onl"></div>
</DIV>


<?php }
$rs2=@mysql_query("select count(id) from jm_list  where j_sh=1 ".$sqls2);
$totalrecord=@mysql_result($rs2,0); 
$totalpage=ceil($totalrecord/$maxpage);
@mysql_free_result($rs2);
?>


</div>
<div class="onl"></div>
<div class="page">
<div class="pageleft">
<ul>
<?php pages($thepage,$totalpage,$maxpage,4);?></ul>
</div>
<div class="pageright">
<form name="pageform" method="post" action="" onSubmit="return onCheckPage()"> 
共<?=$totalpage?>页　到
<input type="text" name="page" class="input-txt" size="5" maxlength="5">页
<input type="submit" value="确定" class="but">
</form>
<script language="javascript"> 
function onCheckPage(){
var page = parseInt(document.pageform.page.value); 
if(isNaN(page)){
alert("请输入数字(1,<?=$totalpage?>)");
return false; 
}
</script>
  </div>
<div class="onl"></div>
</div>
<!--page end-->
</div>
<div class="rightmain">

  <div class="right side">
    <div style="width:180px;" align="center">
	<img src="/images/22.jpg" width="160" height="160" />
      <hr size=1 color="#cccccc"/>
    </div>
  </div>
</div>
<div class="onl"></div>
</div>

<?php include("foot.php");?>


</body>
</html>
<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>